/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package helpdesk;

import com.mongodb.BasicDBObject;

/*
 * This class is used to keep track of filenames and their read status
 * Creatd by John Eversole
 */
public class FileRec 
{
    public String filename = "";
    public boolean read = false;
    
    FileRec()
    {
        
    }
    
    FileRec(String filename, boolean read)
    {
        this.filename = filename;
        this.read = read;
    }
    
    public BasicDBObject toBasicDBObject()
    {
        BasicDBObject temp = new BasicDBObject();
        temp.put("filename", this.filename);
        temp.put("read", this.read);
        return temp;
    }
}
